dojo.provide("medryx.rpc.UserService");
dojo.require("medryx.config");

medryx.rpc.UserService = {
	serviceType:"JSON-RPC",
	serviceUrl:medryx.config.rpc.userService,
	methods: [
	   {
	   	   /**
	   	    * login should return a comma-separated list of permissions if successful, false if unsuccessful [is this good, or should 
	   	    * i always throw an error when not successful?], and an error should be returned 
	   	    * there the username/password are malformed or if there is an exception
	   	    * error code: 99 for poorly formed username/password (such as blank, illegal characters, etc)
	   	    */
	   	   name:"login",
		   parameters:[{name:"username", type:"string"}, {name:"password", type:"string"}]
	   }
	]
}
